package xiaolong.zhou.spring_demo.Service;

import xiaolong.zhou.spring_demo.Pojo.Recharge;
import xiaolong.zhou.spring_demo.Pojo.UserDetail;
import xiaolong.zhou.spring_demo.Utils.Result;

import javax.servlet.http.HttpServletRequest;

public interface Users {
    /**
     * 用户列表
     * @param page
     * @param size
     * @param username
     * @param phone
     * @param email
     * @return
     */
    Result lists(Integer page,Integer size,String username,String phone,String email);

    /**
     * 详情
     * @param id
     * @return
     */
    Result show(Integer id);

    /**
     * 添加
     * @param relayUser
     * @return
     */
    Result store(UserDetail relayUser);

    /**
     * 修改
     * @param relayUser
     * @return
     */
    Result save(UserDetail relayUser);

    /**
     * 删除
     * @param id
     * @return
     */
    Result delete(Integer id);

    /**
     * 余额充值
     * @param recharge
     * @param request
     * @return
     */
    Result recharge(Recharge recharge, HttpServletRequest request);
}
